package com.yingluo.abacus.plantform.docs.app.freemark;

import com.yingluo.abacus.plantform.docs.app.utils.DocsAppUtils;
import com.yingluo.abacus.plantform.utils.PlantformUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;


@Controller
public class TemplateControler {


	private static final Logger logger = LoggerFactory.getLogger(TemplateControler.class);
	private final static String PATH=DocsAppUtils.MOUDLE_PATH+"/freemark/template";
	@RequestMapping(PlantformUtils.PROJECT_PATH  +PATH)

	public String  execute(ModelMap model) {
		List<String> userList=new ArrayList<String>();
		userList.add("admin");
		userList.add("中文");
		userList.add("user2");

		model.put("userList", userList);
		return PATH;
	}
	 
}

 